package com.wcm.web.client;

import com.wcm.system.repository.faxuewang.NewstypeEntityRepository;
import com.wcm.system.service.data.DataService;
import com.wcm.system.service.faxuewang.FDataService;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@RestController
@EnableAutoConfiguration
public class IndexController {
    @Resource
    FDataService fDataService;
    @RequestMapping("faxuewang/test")
    public void te2222st1(HttpServletResponse response) throws IOException {
        fDataService.getTreeList();
        fDataService.generate(response);
    }
}
